<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://wasf.cb.com/tag" prefix="wasf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="google" content="notranslate"/>
        <%--<script type="text/javascript" charset="UTF-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <script type="text/javascript" charset="UTF-8" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
        <link rel="stylesheet" charset="UTF-8" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/cupertino/jquery-ui.css"/>--%>
        <script type="text/javascript" charset="UTF-8" src="<%= request.getContextPath() %>/jquery/jquery.min.js"></script>
        <script type="text/javascript" charset="UTF-8" src="<%= request.getContextPath() %>/jquery/jquery-ui.min.js"></script>
        <link rel="stylesheet" charset="UTF-8" href="<%= request.getContextPath() %>/jquery/jquery-ui.css"/>
        <script type="text/javascript" charset="UTF-8" src="<%= request.getContextPath() %>/jquery/jquery.jnotify.js"></script>
        <script type="text/javascript" charset="UTF-8" src="<%= request.getContextPath() %>/jquery/jquery.layout-1.2.0.js"></script>
        <script type="text/javascript" charset="UTF-8" src="<%= request.getContextPath() %>/jquery/jquery.jsonp-2.1.4.min.js"></script>
        <link rel="stylesheet" charset="UTF-8" href="<%= request.getContextPath()%>/jquery/jquery.jnotify.css"/>
        <%--
         Available themes :
            base black-tie blitzer cupertino dark-hive dot-luv eggplant excite-bike
            flick hot-sneaks humanity le-frog mint-choc overcast
            pepper-grinder redmond smoothness south-street start sunny
            swanky-purse trontastic ui-darkness ui-lightness vader
        --%>
        <link rel="stylesheet" charset="UTF-8" href="<%= request.getContextPath()%>/css/wasf.css"/>
        <script>
            $(function() {
                $("a.wasf-button").button();
                $('#notifier').jnotifyInizialize({
                    oneAtTime: false,
                    appendType: 'append'
                }).css({
                    'position': 'absolute',
                    'marginTop': '15px',
                    'right': '15px',
                    'width': '45%',
                    'z-index': '9000'
                });
                <c:if test="${state.refreshedAfterDesynchronization}">
                        $("#notifier").jnotifyAddMessage( {
                            text:
                                "\
                                    <b>Problème de synchronisation avec le serveur</b>\n\
                                    <br/>\n\
                                    Cette erreur peut survenir lors de l'utilisation de la fonction \"actualiser\" de votre navigateur,\n\
                                    dans ce cas il n'y pas pas d'incidence particulière,\n\
                                    dans le cas contraire merci de vous rapprocher vers l'équipe support en décrivant le scénario engendrant l'apparition de ce message\n\
                                ",
                            type: "error",
                            disappearTime: 15000
                        });
                </c:if>
                <c:if test="${not empty state.messages}">
                    var content = "<div>";
                    <c:forEach items="${state.messages}" var="message" varStatus="varStatus">
                        content += <c:if test="${not varStatus.first}">"<br/>" + </c:if>"${message.html}";<%-- TODO Escape message.html content --%>
                    </c:forEach>
                    content += "</div>";
                    $("#notifier").jnotifyAddMessage( {
                        text: content,
                        permanent: true
                    });
                </c:if>
            });
        </script>
        <wasf:insertFrament name="head"/>
        <title><wasf:insertFrament name="title"/></title>
    </head>
    <body>
        <div id="notifier"></div>
        <wasf:insertFrament name="body"/>
    </body>
</html>